/**
 * Created by milud on 2016/12/24.
 */
document.addEventListener("DOMContentLoaded",function() {
    setMerryGoRound();
});

function setMerryGoRound() {
    var data = [
        {
            width: 700,
            top: 100,
            left: 150,
            zIndex: 4,
            opacity: 1
        },
        {
            width: 500,
            top: 50,
            left: 500,
            zIndex: 2,
            opacity: 0.8
        },
        {
            width: 300,
            top: 0,
            left: 650,
            zIndex: 1,
            opacity: 0.2
        },
        {
            width: 300,
            top: 0,
            left: 100,
            zIndex: 1,
            opacity: 0.2
        },
        {
            width: 500,
            top: 50,
            left: 0,
            zIndex: 2,
            opacity: 0.8
        }
    ];
    var obj = {
        styleData:data,
        imagesList: document.querySelectorAll(".merry-go-round ul li"),
        parentBox: document.querySelector(".merry-go-round"),
        arrows: {
            left: document.querySelector(".merry-left-arrow"),
            right: document.querySelector(".merry-right-arrow")
        }
    };
    new MerryGoRound(obj);
}